Termination w.r.t. Q of the following Term Rewriting System could be disproven:

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(nil) → 0
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(U11(X1, X2)) → a__U11(mark(X1), X2)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(length(X)) → a__length(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeroszeros
a__U11(X1, X2) → U11(X1, X2)
a__U12(X1, X2) → U12(X1, X2)
a__length(X) → length(X)

Q is empty.


QTRS
  ↳ RRRPoloQTRSProof

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(nil) → 0
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(U11(X1, X2)) → a__U11(mark(X1), X2)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(length(X)) → a__length(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeroszeros
a__U11(X1, X2) → U11(X1, X2)
a__U12(X1, X2) → U12(X1, X2)
a__length(X) → length(X)

Q is empty.

The following Q TRS is given: Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(nil) → 0
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(U11(X1, X2)) → a__U11(mark(X1), X2)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(length(X)) → a__length(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeroszeros
a__U11(X1, X2) → U11(X1, X2)
a__U12(X1, X2) → U12(X1, X2)
a__length(X) → length(X)

Q is empty.
The following rules can be removed by the rule removal processor [15] because they are oriented strictly by a polynomial ordering:

a__length(nil) → 0
Used ordering:
Polynomial interpretation [25]:

POL(0) = 0   
POL(U11(x1, x2)) = x1 + 2·x2   
POL(U12(x1, x2)) = x1 + 2·x2   
POL(a__U11(x1, x2)) = x1 + 2·x2   
POL(a__U12(x1, x2)) = x1 + 2·x2   
POL(a__length(x1)) = 2·x1   
POL(a__zeros) = 0   
POL(cons(x1, x2)) = 2·x1 + x2   
POL(length(x1)) = 2·x1   
POL(mark(x1)) = x1   
POL(nil) = 2   
POL(s(x1)) = x1   
POL(tt) = 0   
POL(zeros) = 0   




↳ QTRS
  ↳ RRRPoloQTRSProof
QTRS
      ↳ RRRPoloQTRSProof

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(U11(X1, X2)) → a__U11(mark(X1), X2)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(length(X)) → a__length(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeroszeros
a__U11(X1, X2) → U11(X1, X2)
a__U12(X1, X2) → U12(X1, X2)
a__length(X) → length(X)

Q is empty.

The following Q TRS is given: Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(U11(X1, X2)) → a__U11(mark(X1), X2)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(length(X)) → a__length(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeroszeros
a__U11(X1, X2) → U11(X1, X2)
a__U12(X1, X2) → U12(X1, X2)
a__length(X) → length(X)

Q is empty.
The following rules can be removed by the rule removal processor [15] because they are oriented strictly by a polynomial ordering:

mark(U11(X1, X2)) → a__U11(mark(X1), X2)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(length(X)) → a__length(mark(X))
Used ordering:
Polynomial interpretation [25]:

POL(0) = 0   
POL(U11(x1, x2)) = 1 + x1 + 2·x2   
POL(U12(x1, x2)) = 1 + 2·x1 + x2   
POL(a__U11(x1, x2)) = 1 + x1 + 2·x2   
POL(a__U12(x1, x2)) = 1 + 2·x1 + 2·x2   
POL(a__length(x1)) = 1 + x1   
POL(a__zeros) = 0   
POL(cons(x1, x2)) = x1 + 2·x2   
POL(length(x1)) = 1 + x1   
POL(mark(x1)) = 2·x1   
POL(nil) = 0   
POL(s(x1)) = x1   
POL(tt) = 0   
POL(zeros) = 0   




↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
QTRS
          ↳ RRRPoloQTRSProof

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeroszeros
a__U11(X1, X2) → U11(X1, X2)
a__U12(X1, X2) → U12(X1, X2)
a__length(X) → length(X)

Q is empty.

The following Q TRS is given: Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeroszeros
a__U11(X1, X2) → U11(X1, X2)
a__U12(X1, X2) → U12(X1, X2)
a__length(X) → length(X)

Q is empty.
The following rules can be removed by the rule removal processor [15] because they are oriented strictly by a polynomial ordering:

a__U11(X1, X2) → U11(X1, X2)
a__U12(X1, X2) → U12(X1, X2)
a__length(X) → length(X)
Used ordering:
Polynomial interpretation [25]:

POL(0) = 0   
POL(U11(x1, x2)) = x1 + x2   
POL(U12(x1, x2)) = x1 + 2·x2   
POL(a__U11(x1, x2)) = 1 + 2·x1 + 2·x2   
POL(a__U12(x1, x2)) = 1 + 2·x1 + 2·x2   
POL(a__length(x1)) = 1 + 2·x1   
POL(a__zeros) = 0   
POL(cons(x1, x2)) = 2·x1 + x2   
POL(length(x1)) = x1   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(s(x1)) = x1   
POL(tt) = 0   
POL(zeros) = 0   




↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
QTRS
              ↳ RRRPoloQTRSProof

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeroszeros

Q is empty.

The following Q TRS is given: Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeroszeros

Q is empty.
The following rules can be removed by the rule removal processor [15] because they are oriented strictly by a polynomial ordering:

mark(nil) → nil
Used ordering:
Polynomial interpretation [25]:

POL(0) = 0   
POL(a__U11(x1, x2)) = x1 + 2·x2   
POL(a__U12(x1, x2)) = 2·x1 + 2·x2   
POL(a__length(x1)) = x1   
POL(a__zeros) = 0   
POL(cons(x1, x2)) = 2·x1 + 2·x2   
POL(mark(x1)) = 2·x1   
POL(nil) = 1   
POL(s(x1)) = x1   
POL(tt) = 0   
POL(zeros) = 0   




↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
QTRS
                  ↳ RRRPoloQTRSProof

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
a__zeroszeros

Q is empty.

The following Q TRS is given: Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
a__zeroszeros

Q is empty.
The following rules can be removed by the rule removal processor [15] because they are oriented strictly by a polynomial ordering:

a__zeroszeros
Used ordering:
Polynomial interpretation [25]:

POL(0) = 0   
POL(a__U11(x1, x2)) = x1 + 2·x2   
POL(a__U12(x1, x2)) = 2·x1 + 2·x2   
POL(a__length(x1)) = x1   
POL(a__zeros) = 2   
POL(cons(x1, x2)) = x1 + 2·x2   
POL(mark(x1)) = 2·x1   
POL(s(x1)) = x1   
POL(tt) = 0   
POL(zeros) = 1   




↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
QTRS
                      ↳ RRRPoloQTRSProof

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))

Q is empty.

The following Q TRS is given: Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))

Q is empty.
The following rules can be removed by the rule removal processor [15] because they are oriented strictly by a polynomial ordering:

mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
Used ordering:
Polynomial interpretation [25]:

POL(0) = 0   
POL(a__U11(x1, x2)) = 1 + x1 + 2·x2   
POL(a__U12(x1, x2)) = 1 + 2·x1 + 2·x2   
POL(a__length(x1)) = x1   
POL(a__zeros) = 1   
POL(cons(x1, x2)) = 1 + x1 + 2·x2   
POL(mark(x1)) = 1 + 2·x1   
POL(s(x1)) = x1   
POL(tt) = 0   
POL(zeros) = 0   




↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
QTRS
                          ↳ Overlay + Local Confluence

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))

Q is empty.

The TRS is overlay and locally confluent. By [19] we can switch to innermost.

↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
QTRS
                              ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))

The set Q consists of the following terms:

a__zeros
a__U11(tt, x0)
a__U12(tt, x0)
a__length(cons(x0, x1))
mark(zeros)
mark(s(x0))


Using Dependency Pairs [1,15] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

MARK(zeros) → A__ZEROS
MARK(s(X)) → MARK(X)
A__U12(tt, L) → MARK(L)
A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U11(tt, L) → A__U12(tt, L)
A__U12(tt, L) → A__LENGTH(mark(L))

The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))

The set Q consists of the following terms:

a__zeros
a__U11(tt, x0)
a__U12(tt, x0)
a__length(cons(x0, x1))
mark(zeros)
mark(s(x0))

We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
QDP
                                  ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

MARK(zeros) → A__ZEROS
MARK(s(X)) → MARK(X)
A__U12(tt, L) → MARK(L)
A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U11(tt, L) → A__U12(tt, L)
A__U12(tt, L) → A__LENGTH(mark(L))

The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))

The set Q consists of the following terms:

a__zeros
a__U11(tt, x0)
a__U12(tt, x0)
a__length(cons(x0, x1))
mark(zeros)
mark(s(x0))

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 2 SCCs with 2 less nodes.

↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
QDP
                                        ↳ UsableRulesProof
                                      ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

MARK(s(X)) → MARK(X)

The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))

The set Q consists of the following terms:

a__zeros
a__U11(tt, x0)
a__U12(tt, x0)
a__length(cons(x0, x1))
mark(zeros)
mark(s(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                        ↳ UsableRulesProof
QDP
                                            ↳ QReductionProof
                                      ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

MARK(s(X)) → MARK(X)

R is empty.
The set Q consists of the following terms:

a__zeros
a__U11(tt, x0)
a__U12(tt, x0)
a__length(cons(x0, x1))
mark(zeros)
mark(s(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

a__zeros
a__U11(tt, x0)
a__U12(tt, x0)
a__length(cons(x0, x1))
mark(zeros)
mark(s(x0))



↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                        ↳ UsableRulesProof
                                          ↳ QDP
                                            ↳ QReductionProof
QDP
                                                ↳ QDPSizeChangeProof
                                      ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

MARK(s(X)) → MARK(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
QDP
                                        ↳ UsableRulesProof
                                        ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

A__U11(tt, L) → A__U12(tt, L)
A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U12(tt, L) → A__LENGTH(mark(L))

The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))

The set Q consists of the following terms:

a__zeros
a__U11(tt, x0)
a__U12(tt, x0)
a__length(cons(x0, x1))
mark(zeros)
mark(s(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                      ↳ QDP
                                        ↳ UsableRulesProof
QDP
                                            ↳ QReductionProof
                                        ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

A__U11(tt, L) → A__U12(tt, L)
A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U12(tt, L) → A__LENGTH(mark(L))

The TRS R consists of the following rules:

mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))
a__zeroscons(0, zeros)

The set Q consists of the following terms:

a__zeros
a__U11(tt, x0)
a__U12(tt, x0)
a__length(cons(x0, x1))
mark(zeros)
mark(s(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

a__U11(tt, x0)
a__U12(tt, x0)
a__length(cons(x0, x1))



↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                      ↳ QDP
                                        ↳ UsableRulesProof
                                          ↳ QDP
                                            ↳ QReductionProof
QDP
                                                ↳ RuleRemovalProof
                                        ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U11(tt, L) → A__U12(tt, L)
A__U12(tt, L) → A__LENGTH(mark(L))

The TRS R consists of the following rules:

mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))
a__zeroscons(0, zeros)

The set Q consists of the following terms:

a__zeros
mark(zeros)
mark(s(x0))

We have to consider all minimal (P,Q,R)-chains.
By using the rule removal processor [15] with the following polynomial ordering [25], at least one Dependency Pair or term rewrite system rule of this QDP problem can be strictly oriented.

Strictly oriented rules of the TRS R:

mark(s(X)) → s(mark(X))

Used ordering: POLO with Polynomial interpretation [25]:

POL(0) = 0   
POL(A__LENGTH(x1)) = x1   
POL(A__U11(x1, x2)) = x1 + 2·x2   
POL(A__U12(x1, x2)) = x1 + 2·x2   
POL(a__zeros) = 0   
POL(cons(x1, x2)) = 2·x1 + 2·x2   
POL(mark(x1)) = 2·x1   
POL(s(x1)) = 2 + 2·x1   
POL(tt) = 0   
POL(zeros) = 0   



↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                      ↳ QDP
                                        ↳ UsableRulesProof
                                          ↳ QDP
                                            ↳ QReductionProof
                                              ↳ QDP
                                                ↳ RuleRemovalProof
QDP
                                                    ↳ Narrowing
                                        ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

A__U11(tt, L) → A__U12(tt, L)
A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U12(tt, L) → A__LENGTH(mark(L))

The TRS R consists of the following rules:

mark(zeros) → a__zeros
a__zeroscons(0, zeros)

The set Q consists of the following terms:

a__zeros
mark(zeros)
mark(s(x0))

We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule A__U12(tt, L) → A__LENGTH(mark(L)) at position [0] we obtained the following new rules:

A__U12(tt, zeros) → A__LENGTH(a__zeros)



↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                      ↳ QDP
                                        ↳ UsableRulesProof
                                          ↳ QDP
                                            ↳ QReductionProof
                                              ↳ QDP
                                                ↳ RuleRemovalProof
                                                  ↳ QDP
                                                    ↳ Narrowing
QDP
                                                        ↳ UsableRulesProof
                                        ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

A__U12(tt, zeros) → A__LENGTH(a__zeros)
A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U11(tt, L) → A__U12(tt, L)

The TRS R consists of the following rules:

mark(zeros) → a__zeros
a__zeroscons(0, zeros)

The set Q consists of the following terms:

a__zeros
mark(zeros)
mark(s(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                      ↳ QDP
                                        ↳ UsableRulesProof
                                          ↳ QDP
                                            ↳ QReductionProof
                                              ↳ QDP
                                                ↳ RuleRemovalProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ UsableRulesProof
QDP
                                                            ↳ QReductionProof
                                        ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

A__U12(tt, zeros) → A__LENGTH(a__zeros)
A__U11(tt, L) → A__U12(tt, L)
A__LENGTH(cons(N, L)) → A__U11(tt, L)

The TRS R consists of the following rules:

a__zeroscons(0, zeros)

The set Q consists of the following terms:

a__zeros
mark(zeros)
mark(s(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

mark(zeros)
mark(s(x0))



↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                      ↳ QDP
                                        ↳ UsableRulesProof
                                          ↳ QDP
                                            ↳ QReductionProof
                                              ↳ QDP
                                                ↳ RuleRemovalProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ UsableRulesProof
                                                          ↳ QDP
                                                            ↳ QReductionProof
QDP
                                                                ↳ Rewriting
                                        ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

A__U12(tt, zeros) → A__LENGTH(a__zeros)
A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U11(tt, L) → A__U12(tt, L)

The TRS R consists of the following rules:

a__zeroscons(0, zeros)

The set Q consists of the following terms:

a__zeros

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule A__U12(tt, zeros) → A__LENGTH(a__zeros) at position [0] we obtained the following new rules:

A__U12(tt, zeros) → A__LENGTH(cons(0, zeros))



↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                      ↳ QDP
                                        ↳ UsableRulesProof
                                          ↳ QDP
                                            ↳ QReductionProof
                                              ↳ QDP
                                                ↳ RuleRemovalProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ UsableRulesProof
                                                          ↳ QDP
                                                            ↳ QReductionProof
                                                              ↳ QDP
                                                                ↳ Rewriting
QDP
                                                                    ↳ UsableRulesProof
                                        ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

A__U11(tt, L) → A__U12(tt, L)
A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U12(tt, zeros) → A__LENGTH(cons(0, zeros))

The TRS R consists of the following rules:

a__zeroscons(0, zeros)

The set Q consists of the following terms:

a__zeros

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                      ↳ QDP
                                        ↳ UsableRulesProof
                                          ↳ QDP
                                            ↳ QReductionProof
                                              ↳ QDP
                                                ↳ RuleRemovalProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ UsableRulesProof
                                                          ↳ QDP
                                                            ↳ QReductionProof
                                                              ↳ QDP
                                                                ↳ Rewriting
                                                                  ↳ QDP
                                                                    ↳ UsableRulesProof
QDP
                                                                        ↳ QReductionProof
                                        ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U11(tt, L) → A__U12(tt, L)
A__U12(tt, zeros) → A__LENGTH(cons(0, zeros))

R is empty.
The set Q consists of the following terms:

a__zeros

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

a__zeros



↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                      ↳ QDP
                                        ↳ UsableRulesProof
                                          ↳ QDP
                                            ↳ QReductionProof
                                              ↳ QDP
                                                ↳ RuleRemovalProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ UsableRulesProof
                                                          ↳ QDP
                                                            ↳ QReductionProof
                                                              ↳ QDP
                                                                ↳ Rewriting
                                                                  ↳ QDP
                                                                    ↳ UsableRulesProof
                                                                      ↳ QDP
                                                                        ↳ QReductionProof
QDP
                                                                            ↳ Instantiation
                                        ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

A__U11(tt, L) → A__U12(tt, L)
A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U12(tt, zeros) → A__LENGTH(cons(0, zeros))

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By instantiating [15] the rule A__LENGTH(cons(N, L)) → A__U11(tt, L) we obtained the following new rules:

A__LENGTH(cons(0, zeros)) → A__U11(tt, zeros)



↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                      ↳ QDP
                                        ↳ UsableRulesProof
                                          ↳ QDP
                                            ↳ QReductionProof
                                              ↳ QDP
                                                ↳ RuleRemovalProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ UsableRulesProof
                                                          ↳ QDP
                                                            ↳ QReductionProof
                                                              ↳ QDP
                                                                ↳ Rewriting
                                                                  ↳ QDP
                                                                    ↳ UsableRulesProof
                                                                      ↳ QDP
                                                                        ↳ QReductionProof
                                                                          ↳ QDP
                                                                            ↳ Instantiation
QDP
                                                                                ↳ Instantiation
                                        ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

A__U11(tt, L) → A__U12(tt, L)
A__LENGTH(cons(0, zeros)) → A__U11(tt, zeros)
A__U12(tt, zeros) → A__LENGTH(cons(0, zeros))

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By instantiating [15] the rule A__U11(tt, L) → A__U12(tt, L) we obtained the following new rules:

A__U11(tt, zeros) → A__U12(tt, zeros)



↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                      ↳ QDP
                                        ↳ UsableRulesProof
                                          ↳ QDP
                                            ↳ QReductionProof
                                              ↳ QDP
                                                ↳ RuleRemovalProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ UsableRulesProof
                                                          ↳ QDP
                                                            ↳ QReductionProof
                                                              ↳ QDP
                                                                ↳ Rewriting
                                                                  ↳ QDP
                                                                    ↳ UsableRulesProof
                                                                      ↳ QDP
                                                                        ↳ QReductionProof
                                                                          ↳ QDP
                                                                            ↳ Instantiation
                                                                              ↳ QDP
                                                                                ↳ Instantiation
QDP
                                                                                    ↳ NonTerminationProof
                                        ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

A__U12(tt, zeros) → A__LENGTH(cons(0, zeros))
A__LENGTH(cons(0, zeros)) → A__U11(tt, zeros)
A__U11(tt, zeros) → A__U12(tt, zeros)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We used the non-termination processor [17] to show that the DP problem is infinite.
Found a loop by narrowing to the left:

The TRS P consists of the following rules:

A__U12(tt, zeros) → A__LENGTH(cons(0, zeros))
A__LENGTH(cons(0, zeros)) → A__U11(tt, zeros)
A__U11(tt, zeros) → A__U12(tt, zeros)

The TRS R consists of the following rules:none


s = A__LENGTH(cons(0, zeros)) evaluates to t =A__LENGTH(cons(0, zeros))

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:




Rewriting sequence

A__LENGTH(cons(0, zeros))A__U11(tt, zeros)
with rule A__LENGTH(cons(0, zeros)) → A__U11(tt, zeros) at position [] and matcher [ ]

A__U11(tt, zeros)A__U12(tt, zeros)
with rule A__U11(tt, zeros) → A__U12(tt, zeros) at position [] and matcher [ ]

A__U12(tt, zeros)A__LENGTH(cons(0, zeros))
with rule A__U12(tt, zeros) → A__LENGTH(cons(0, zeros))

Now applying the matcher to the start term leads to a term which is equal to the last term in the rewriting sequence


All these steps are and every following step will be a correct step w.r.t to Q.




As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                      ↳ QDP
                                        ↳ UsableRulesProof
                                        ↳ UsableRulesProof
QDP
                                            ↳ QReductionProof

Q DP problem:
The TRS P consists of the following rules:

A__U11(tt, L) → A__U12(tt, L)
A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U12(tt, L) → A__LENGTH(mark(L))

The TRS R consists of the following rules:

mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))
a__zeroscons(0, zeros)

The set Q consists of the following terms:

a__zeros
a__U11(tt, x0)
a__U12(tt, x0)
a__length(cons(x0, x1))
mark(zeros)
mark(s(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

a__U11(tt, x0)
a__U12(tt, x0)
a__length(cons(x0, x1))



↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                      ↳ QDP
                                        ↳ UsableRulesProof
                                        ↳ UsableRulesProof
                                          ↳ QDP
                                            ↳ QReductionProof
QDP
                                                ↳ MNOCProof

Q DP problem:
The TRS P consists of the following rules:

A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U11(tt, L) → A__U12(tt, L)
A__U12(tt, L) → A__LENGTH(mark(L))

The TRS R consists of the following rules:

mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))
a__zeroscons(0, zeros)

The set Q consists of the following terms:

a__zeros
mark(zeros)
mark(s(x0))

We have to consider all minimal (P,Q,R)-chains.
We use the modular non-overlap check [17] to decrease Q to the empty set.

↳ QTRS
  ↳ RRRPoloQTRSProof
    ↳ QTRS
      ↳ RRRPoloQTRSProof
        ↳ QTRS
          ↳ RRRPoloQTRSProof
            ↳ QTRS
              ↳ RRRPoloQTRSProof
                ↳ QTRS
                  ↳ RRRPoloQTRSProof
                    ↳ QTRS
                      ↳ RRRPoloQTRSProof
                        ↳ QTRS
                          ↳ Overlay + Local Confluence
                            ↳ QTRS
                              ↳ DependencyPairsProof
                                ↳ QDP
                                  ↳ DependencyGraphProof
                                    ↳ AND
                                      ↳ QDP
                                      ↳ QDP
                                        ↳ UsableRulesProof
                                        ↳ UsableRulesProof
                                          ↳ QDP
                                            ↳ QReductionProof
                                              ↳ QDP
                                                ↳ MNOCProof
QDP
                                                    ↳ NonTerminationProof

Q DP problem:
The TRS P consists of the following rules:

A__U11(tt, L) → A__U12(tt, L)
A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U12(tt, L) → A__LENGTH(mark(L))

The TRS R consists of the following rules:

mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))
a__zeroscons(0, zeros)

Q is empty.
We have to consider all (P,Q,R)-chains.
We used the non-termination processor [17] to show that the DP problem is infinite.
Found a loop by narrowing to the left:

The TRS P consists of the following rules:

A__U11(tt, L) → A__U12(tt, L)
A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U12(tt, L) → A__LENGTH(mark(L))

The TRS R consists of the following rules:

mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))
a__zeroscons(0, zeros)


s = A__U12(tt, zeros) evaluates to t =A__U12(tt, zeros)

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:




Rewriting sequence

A__U12(tt, zeros)A__LENGTH(mark(zeros))
with rule A__U12(tt, L) → A__LENGTH(mark(L)) at position [] and matcher [L / zeros]

A__LENGTH(mark(zeros))A__LENGTH(a__zeros)
with rule mark(zeros) → a__zeros at position [0] and matcher [ ]

A__LENGTH(a__zeros)A__LENGTH(cons(0, zeros))
with rule a__zeroscons(0, zeros) at position [0] and matcher [ ]

A__LENGTH(cons(0, zeros))A__U11(tt, zeros)
with rule A__LENGTH(cons(N, L')) → A__U11(tt, L') at position [] and matcher [L' / zeros, N / 0]

A__U11(tt, zeros)A__U12(tt, zeros)
with rule A__U11(tt, L) → A__U12(tt, L)

Now applying the matcher to the start term leads to a term which is equal to the last term in the rewriting sequence


All these steps are and every following step will be a correct step w.r.t to Q.